package com.lzt.test

object TestJson{
  def main(args: Array[String]): Unit = {
    import org.json4s._
    import org.json4s.JsonDSL._
    import org.json4s.jackson.JsonMethods._

    val j = ("name" -> "joe") ~ ("age" -> Some(35))
    val json = j ~ ("ss", "ee")
    json ~ j
    val arr = List(("a",JString("2")), ("b", JString("3")))

//    println(json.getClass)
    implicit val formats = DefaultFormats
    println(compact(render(arr)))
  }
}
